package com.example.demo.controller;

import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务controller
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    /**
     * 业务接口
     * @return
     */
    @RequestMapping("/testSayHello")
    public String testSayHello(){
        return testService.getSayHello();
    }

}
